package net.hn.hnms.biz.shipped.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import net.hn.hnms.biz.shipped.service.IStatisticService;
import net.hn.hnms.biz.shipped.vo.TransportStatisticVO;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.sys.common.satoken.config.AutoSetMineCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "统计相关", tags = {"统计相关"})
@RestController
@RequestMapping("/statistic")
public class StatisticController {


    @Autowired
    private IStatisticService statisticService;

    @ApiOperation("运销统计")
//    @SaCheckPermission("transport:statistic")
    @GetMapping("/bigscreen/transport")
    @AutoSetMineCode
    public R<TransportStatisticVO> transportForBigScreen(String date, @ApiParam(value = "煤矿编码") String mineCode) {
        return R.ok(statisticService.transportForBigScreen(date,mineCode));
    }

}
